package com.txt.exception;

import lombok.Getter;

@Getter
public class BusinessException extends RuntimeException{

    public String msg;
    public String code;

    public BusinessException(String msg)
    {
        super();
        this.msg = msg;
    }
    public BusinessException(ErrorEnum errorEnum)
    {
        super();
        this.code = errorEnum.getCode();
        this.msg =errorEnum.getMsg();
    }
}
